#include "widget.h"
#include "ui_widget.h"
#include "QLabel"
#include "QDebug"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_addx_clicked()
{
    QRect rect = ui->pushButton_target->geometry();
    qDebug() << rect;
    rect.setX(rect.x()+10);
    ui->pushButton_target->setGeometry(rect);
}


void Widget::on_pushButton_decy_clicked()
{
    QRect rect = ui->pushButton_target->geometry();
    qDebug() << rect;
    rect.setY(rect.y()-10);
    ui->pushButton_target->setGeometry(rect);
}

void Widget::on_pushButton_decx_clicked()
{
    QRect rect = ui->pushButton_target->geometry();
    qDebug() << rect;
    rect.setX(rect.x()-10);
    ui->pushButton_target->setGeometry(rect);
}

void Widget::on_pushButton_addy_clicked()
{
    QRect rect = ui->pushButton_target->geometry();
    qDebug() << rect;
    rect.setY(rect.y()+10);
    ui->pushButton_target->setGeometry(rect);
}
